package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.business.service.family.LoanNewCreditCardProgressService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LoanNewCreditCardProgressRequest;
import com.tuanzi.loan.vo.response.family.LoanNewCreditCardProgressResponse;
import org.springframework.data.domain.Page;

/**
 * User: liangZongXi
 * Create time: 10:54 2018/9/20
 * Description:
 */
public class LoanNewCreditCardProgressListLazyDataModel extends BaseLazyDataModel<LoanNewCreditCardProgressRequest, LoanNewCreditCardProgressResponse> {
    private static final long serialVersionUID = 7832897184948945638L;

    private LoanNewCreditCardProgressService loanNewCreditCardProgressService = SpringContextHolder.getBean(LoanNewCreditCardProgressService.class);

    public LoanNewCreditCardProgressListLazyDataModel(LoanNewCreditCardProgressRequest loanNewCreditCardProgressRequest) {
        super(loanNewCreditCardProgressRequest);
    }

    @Override
    protected Page<LoanNewCreditCardProgressResponse> doLoad(PageSearcher<LoanNewCreditCardProgressRequest> pageSearcher) {
        return loanNewCreditCardProgressService.list(pageSearcher);
    }
}
